package com.hutao.manage.model;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
/**
 * 长期医嘱信息
 * @author lyh
 *
 */
public class HospitalVisitDoctorAdviceStandingInfo {

	/**
	 * visitGuid
	 */
	private String visitGuid;
	
	/**
	 * 长期医嘱记录集合
	 */
	private List<HospitalVisitDoctorAdviceStandingRecord> doctorAdviceStandingRecords = new ArrayList<HospitalVisitDoctorAdviceStandingRecord>();

	@JsonIgnore
	public void clearEmpty(){
		for (int i = this.doctorAdviceStandingRecords.size()-1; i >=0; i--) {
			HospitalVisitDoctorAdviceStandingRecord doctorAdviceStandingRecord = this.doctorAdviceStandingRecords.get(i);
			doctorAdviceStandingRecord.clearEmpty();
			if(doctorAdviceStandingRecord.isEmpty()){
				this.doctorAdviceStandingRecords.remove(i);
			}
		}
	}
	
	public String getVisitGuid() {
		return visitGuid;
	}

	public void setVisitGuid(String visitGuid) {
		this.visitGuid = visitGuid;
	}

	public List<HospitalVisitDoctorAdviceStandingRecord> getDoctorAdviceStandingRecords() {
		return doctorAdviceStandingRecords;
	}

	public void setDoctorAdviceStandingRecords(
			List<HospitalVisitDoctorAdviceStandingRecord> doctorAdviceStandingRecords) {
		this.doctorAdviceStandingRecords = doctorAdviceStandingRecords;
	}

	
	
	
}
